﻿namespace BLL.Repositories.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class change : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Articles", "PublishTime", c => c.DateTime(nullable: false));
            AddColumn("dbo.Articles", "Body", c => c.String());
            AddColumn("dbo.Articles", "CommentById", c => c.String());
            AddColumn("dbo.Articles", "CommentByName", c => c.String());
            AddColumn("dbo.Articles", "CommentByCount", c => c.String());
            AddColumn("dbo.Articles", "AppraiseByDisagreeAmount", c => c.String());
            AddColumn("dbo.Articles", "AppraiseByAgreeAmount", c => c.String());
            AddColumn("dbo.Articles", "UserById", c => c.String());
            AddColumn("dbo.Articles", "UserByLevel", c => c.String());
            AddColumn("dbo.Articles", "UserByName", c => c.String());
        }
        
        public override void Down()
        {
            DropColumn("dbo.Articles", "UserByName");
            DropColumn("dbo.Articles", "UserByLevel");
            DropColumn("dbo.Articles", "UserById");
            DropColumn("dbo.Articles", "AppraiseByAgreeAmount");
            DropColumn("dbo.Articles", "AppraiseByDisagreeAmount");
            DropColumn("dbo.Articles", "CommentByCount");
            DropColumn("dbo.Articles", "CommentByName");
            DropColumn("dbo.Articles", "CommentById");
            DropColumn("dbo.Articles", "Body");
            DropColumn("dbo.Articles", "PublishTime");
        }
    }
}
